package com.design01_builder.pattern04_builder.example01;

import com.design01_builder.pattern04_builder.example01.builder.MobikeBuilder;
import com.design01_builder.pattern04_builder.example01.director.Director;
import com.design01_builder.pattern04_builder.example01.product.Bike;

/**
 * @ClassName Client
 * @Description 客户端
 * @Author zhangjunhao
 * @DATE 2023/9/3 1:45
 */
public class Client {

    public static void main(String[] args) {

        //1.创建一个指挥者
        Director director = new Director(new MobikeBuilder());

        //2.获取自行车
        Bike construct = director.construct();

        System.out.println(construct.getSeat()+ construct.getSeat());


    }


}
